package io.renren.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 *
 *
 * @author Yangqianyong
 * @email sunlightcs@gmail.com
 * @date 2021-11-17 15:35:51
 */
@Data
@TableName("shop_order")
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 订单表ID
	 */
	@TableId
	private Long orderId;
	/**
	 * 订单商品ID
	 */
	private Long productId;
	/**
	 * 商品名称
	 */
	private String productName;
	/**
	 * 客户ID
	 */
	private Long customerId;
	/**
	 * 商户ID
	 */
	private Long merchantId;
	/**
	 * 商品数量
	 */
	private Integer productNum;
	/**
	 * 订单总价
	 */
	private Double productPrice;
	/**
	 * 订单生成时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 * 商品数量
	 */
	private Integer orderState;

	/**
	 * 商品图片
	 */
	private String productImg;

}
